how to read and print structure in c